<?php

namespace Wangxi\Service\Order;

interface OrderServiceInterface
{
    /**
     * 根据订单号获取订单信息
     * @param string $order_no
     * @param array|null $fields
     * @return array
     */
    public function getOrderInfoByOrderNo(string $order_no, array $fields = ['*']): array;

    /**
     * 创建订单
     * @param array $data
     * @param array|null $merger
     * @return bool
     */
    public function createOrder(array $data, array $merger = []): bool;
}